package com.enjoyor.soa.traffic.rest.tsms.dubbo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.tsms.AssessItemsDto;
import com.enjoyor.soa.traffic.api.service.dubbo.tsms.IDubboAssessItemsService;
import com.enjoyor.soa.traffic.rest.tsms.dubbo.IAssessItemsConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class AssessItemsConsumeService implements IAssessItemsConsumeService{

	@Reference(version = "1.0.0", timeout = 10000)
	private IDubboAssessItemsService iDubboAssessItemsService;
	
	@Override
	public ResultPojo getAssessItemsPage(Page page) {
		// TODO Auto-generated method stub
		return iDubboAssessItemsService.getAssessItemsPage(page);
	}

	@Override
	public ResultPojo getAssessItemsList() {
		// TODO Auto-generated method stub
		return iDubboAssessItemsService.getAssessItemsList();
	}

	@Override
	public ResultPojo addAssessItems(AssessItemsDto assessItemsDto, String personName) {
		// TODO Auto-generated method stub
		return iDubboAssessItemsService.addAssessItems(assessItemsDto, personName);
	}

	@Override
	public ResultPojo editAssessItems(AssessItemsDto assessItemsDto, String personName) {
		// TODO Auto-generated method stub
		return iDubboAssessItemsService.editAssessItems(assessItemsDto, personName);
	}

	@Override
	public ResultPojo deleteAssessItems(String itemsId, String personName) {
		// TODO Auto-generated method stub
		return iDubboAssessItemsService.deleteAssessItems(itemsId, personName);
	}

}
